package com.wangsd.web.face.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wangsd.web.face.entity.Device;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator
 * @since 2019-09-09
 */
public interface DeviceService extends IService<Device> {
    IPage<Device> selectList(Integer pageNum, Integer pageSize, Device device);

    void addOrUpdate(Device device);

    /**
     *  通过编号查询设备
     */
    Device selectByDeviceNo(String deviceNo);

    List<Device> selectAllByUserCode(String code);

    List<Device> selectByStoreId(Long id);

    void deleteDeviceStoreId(Long deviceId);

    void addDeviceStoreId(Long storeId, Long deviceId);

    void removeDeviceStoreIdByStoreId(Long id);
}
